package biz.impl;

import java.util.List;

import biz.RateBiz;
import dao.RateDao;
import dao.impl.RateDaoImpl;
import entity.Rate;

public class RateBizImpl implements RateBiz{
	RateDao rd = new RateDaoImpl();
	@Override
	public List<Rate> queryAllRate() {
		return rd.queryAllRate();
	}

	@Override
	public Rate queryRateByRateId(int rateId) {
		return rd.queryRateByRateId(rateId);
	}

	@Override
	public List<Rate> queryRateByFoodTypeId(int foodTypeId) {
		return rd.queryRateByFoodTypeId(foodTypeId);
	}

	@Override
	public void addRate(Rate rate) {
		rd.addRate(rate);
		
	}

}
